package com.yunpeng.aidevice.dao.model.entity;

import com.yunpeng.aidevice.dao.model.BaseEntityDO;
import org.apache.commons.lang3.StringUtils;

import java.time.LocalDateTime;

/**
 * <p>
 * 设备
 * </p>
 *
 * @author hemw
 * @since 2020-04-26
 */
public class DeviceDO extends BaseEntityDO {

    private static final long serialVersionUID = 1L;

    /**
     * 状态
     */
    private String state;

    /**
     * 安装时间
     */
    private LocalDateTime installTime;

    /**
     * 安装地点
     */
    private String installLocation;

    /**
     * 归属商户代码
     */
    private String merchantCode;

    /**
     * 设备标识
     */
    private String deviceId;

    /**
     * 设备类型
     */
    private String deviceType;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public LocalDateTime getInstallTime() {
        return installTime;
    }

    public void setInstallTime(LocalDateTime installTime) {
        this.installTime = installTime;
    }

    public String getInstallLocation() {
        return installLocation;
    }

    public void setInstallLocation(String installLocation) {
        this.installLocation = installLocation;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    @Override
    public String toString() {
        return "DeviceDO{" +
                "id=" + id +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", updater=" + updater +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                ", name=" + name +
                ", code=" + code +
                ", number=" + number +
                ", tenantCode=" + tenantCode +
                ", state=" + state +
                ", installTime=" + installTime +
                ", installLocation=" + installLocation +
                ", merchantCode=" + merchantCode +
                ", deviceId=" + deviceId +
                ", deviceType=" + deviceType +
                "}";
    }
}
